package com.shadow.dataentities.systemdata
{
	/**
	 *物品实体 
	 * @author Administrator
	 * 
	 */	
	public class ItemEntity extends BaseEntity
	{
		public var id:uint;
		public var name:String;
		public var description:String;
		public var item_url:String;
		public var type:String;
		public var target:String;
		public var value:Number;
		public var duration:Number;
		public var cool_time:uint;
		public var range:uint;
		public var dependency:uint;
		public var use_case:String;
		public var grade:String;
		public var max_num:uint;
		public function ItemEntity(item:Object)
		{
			super();
			var key:String;
			if (item == null)
			{
				return;
			}
			for (key in item)
			{
				if (hasOwnProperty(key))
				{
					if (this[key] != item[key])
					{
						this[key] = item[key];
					}
				}
			}
			
			
		}
	}
}